﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin_cms/admin_master.master"
    AutoEventWireup="true" CodeFile="admin_edit_album.aspx.cs" Inherits="hydevmanager_admin_edit_album" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager runat="server" ID="scr1" />
    <asp:UpdatePanel runat="server" ID="udp1">
        <ContentTemplate>
            Thêm mô tả:
            <br />
            <asp:TextBox runat="server" ID="txtEdit" Width="600px" Height="100px" TextMode="MultiLine"></asp:TextBox>
            <br />
            <asp:Button runat="server" ID="btnEdit" Text="Save" />
            <br />
            <br />
            <asp:GridView runat="server" ID="grAllphoto" AutoGenerateColumns="false" OnRowCommand='grAllphoto_click'>
                <Columns>
                    <asp:TemplateField HeaderText="ID">
                        <ItemTemplate>
                            <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ảnh">
                        <ItemTemplate>
                            <img alt='' src='../files_upload/album/<%#Eval("folder_name") + "/" + Eval("photo_name") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Sửa">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtEdit" runat="server" CommandArgument='<%#Eval("idphoto")+"|edit" %>'>
                    <img src="style/img/Write_22.png" border="0" />
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtDelete" runat="server" CommandArgument='<%#Eval("idphoto")+"|delete" %>'
                                OnClientClick="return confirm('Bạn có chắc chắn xóa không?')">
                    <img src="style/img/close_32.png" border="0" />
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
